//
//  NYExamineTestMsgSectionHeader.m
//  NiuWaJiaoYu
//
//  Created by 袁航 on 2018/1/10.
//  Copyright © 2018年 niuwaketang. All rights reserved.
//

#import "NYExamineTestMsgSectionHeader.h"
@interface NYExamineTestMsgSectionHeader ()
@property(nonatomic, strong) TTTAttributedLabel *titleLabel;
@end
@implementation NYExamineTestMsgSectionHeader
- (void)setupView
{
        [super setupView];
        [self.contentView addSubview:self.titleLabel];
        self.contentView.backgroundColor  = [UIColor whiteColor];
        self.contentView.qmui_borderPosition = QMUIBorderViewPositionBottom;
        UIView *lineView = [[UIView alloc] init];
        lineView.backgroundColor = UIColorHex(0x3696FF);
        [self.contentView addSubview:lineView];
        [lineView mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.left.equalTo(self.contentView).offset(__WGHeight(15));
                make.height.mas_equalTo(__WGHeight(15));
                make.width.mas_equalTo(__WGWidth(3));
                make.centerY.equalTo(self.contentView);
        }];
        [self.titleLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.equalTo(lineView);
                make.left.equalTo(lineView.mas_right).offset(__WGWidth(10));
        }];
}
- (TTTAttributedLabel *)titleLabel
{
        if ( _titleLabel == nil )
        {
                _titleLabel = [[TTTAttributedLabel alloc] initWithFrame:CGRectZero];
                _titleLabel.textColor = UIColorHex(0x333333);
                _titleLabel.font = WGSystem15Font;
                _titleLabel.text = @"留言列表";
        }
        return _titleLabel;
}

@end
